/*
 *
 * (c) Copyright Ascensio System Limited 2010-2023
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
*/


@import "params.less";

.calendarView {
    border-collapse: collapse;
    color: @dark-color-text;
    margin: 0 8px 4px 8px;
    cursor: default;
    padding-bottom: 8px;

    > table {
        background-color: @light-text-color;
        border: 1px solid @border-color-hover;
        width: 100%;
        border-collapse: separate;
    }

    .line-through {
        text-decoration: line-through;
    }

    .cal_info,
    .cal_agenda {
        vertical-align: top;
        border-spacing: 2px 2px;
        padding: 8px 16px 8px 16px;
        overflow: hidden;
    }

    .cal_summary,
    .agenda_label {
        overflow: hidden;
        text-overflow: ellipsis;
        border: 0px none @dark-color-text;
        border-spacing: 2px 2px;
        margin-bottom: 8px;

        p {
            font: normal 18px 'Open Sans', sans-serif;
        }
    }

    .cal_details,
    .agenda_date {
        color: @messages-muted-font-color;
        height: 18px;
        border: 0px none @light-gray-text-color;
        border-spacing: 2px 2px;
        margin-bottom: 16px;
    }

    .agenda_loading {
        width: 100px;
    }

    .cal_info {
        width: 52%;
        border: 0px none @dark-color-text;

        .cal_buttons_row {

            .card_label {
                vertical-align: middle;
            }

            .cal_buttons {
                white-space: nowrap;
                border: 0px none @dark-color-text;
                border-spacing: 2px 2px;
                padding: 8px 0 8px 0;
            }
        }
    }

    .cal_agenda {
        width: 48%;
        border-top: 0px none @dark-color-text;
        border-right: 0px none @dark-color-text;
        border-bottom: 0px none @dark-color-text;
        border-left: 1px solid @border-color-hover;
    }

    .cal_card,
    .agenda_card {
        max-height: 120px;
        overflow-x: hidden;
        overflow-y: auto;

        tbody {
            border: 0px none rgb(128, 128, 128);
            border-spacing: 2px 2px;
        }
    }

    .card_row,
    .agenda_row {
        height: 26px;
        vertical-align: top;
        border: 0px none rgb(128, 128, 128);
        border-spacing: 2px 2px;
    }

    .card_row {
        .card_label {
            color: @light-gray-text-color;
            height: 18px;
            width: 48px;
            white-space: nowrap;
            border: 0px none @light-gray-text-color;
            border-spacing: 2px 2px;
            padding-right: 8px;
            vertical-align: top;

            .HelpCenterSwitcher:after {
                top: 2px;
            }
        }

        .card_value {
            height: 18px;
            border: 0px none @dark-color-text;
            border-spacing: 2px 2px;
            vertical-align: top;


            .card_attachments {
                display: block;
                margin-bottom: 2px;
            }
        }
    }

    .agenda_row {
        .time {
            color: @light-gray-text-color;
            padding-right: 16px;
            white-space: nowrap;
            border: 0px none @light-gray-text-color;
            border-spacing: 2px 2px;
        }

        .title {
            color: @light-gray-text-color;
            border: 0px none @light-gray-text-color;
            border-spacing: 2px 2px;

            .link {
                color: @light-gray-text-color;
            }
        }
    }

    .agenda_row.no_events {
        color: @messages-muted-font-color;
    }

    .agenda_row.active {
        .time {
            color: @dark-color-text;
            vertical-align: top;
            border: 0px none @dark-color-text;
        }

        .title {
            color: @dark-color-text;
            border: 0px none @dark-color-text;

            .link {
                color: @dark-color-text;
            }
        }
    }
}

.calendarPopView {
    > table {
        max-width: 480px;
        vertical-align: middle;
    }

    .cal_info {
        vertical-align: top;
        padding-bottom: 16px;

        .cal_action {
            min-height: 14px;
            font: normal 14px 'Open Sans', sans-serif;
            padding-bottom: 8px;
        }

        .cal_summary {
            padding-bottom: 16px;

            p {
                font: normal 18px 'Open Sans', sans-serif;
            }
        }

        .cal_card {

            tbody {
                border: 0px none rgb(128, 128, 128);
                border-spacing: 2px 2px;
            }

            .card_row {
                vertical-align: middle;

                .card_label {
                    color: @light-gray-text-color;
                    height: 18px;
                    width: 48px;
                    vertical-align: top;
                    white-space: nowrap;
                    padding: 2px 10px 6px 0px;
                    vertical-align: top
                }

                .card_value {
                    height: 18px;
                    vertical-align: top;
                    padding: 2px 1px 1px 0px;
                    vertical-align: top
                }
            }
        }
    }
}
